#ifndef _CCAMERA_H
#define _CCAMERA_H

#include "CAnimatedObject.h"
#include "CTileLayer.h"

class CCamera 
{
public:
	//--------------------------------------------//
	//	Constructor and Destructor for this class //
	//--------------------------------------------//
	CCamera();
	CCamera( float Xpos , float Ypos , int width , int height );
	virtual ~CCamera();

	//--------------------------------//
	//	Public methods for this class //
	//--------------------------------//
	void	SetCameraView		( float Xpos , float Ypos , int width , int height );


	RECT	GetCameraView		( );
	float	GetXpos				( );
	float	GetYpos				( );

	void	UpdateCamera		(CTileLayer *pTiled , float posX , float posY);

private:
	//-----------------------------------//
	//	Private variables for this class //
	//-----------------------------------//
	float			m_Xpos;
	float			m_Ypos;
	float			m_PrevXpos;
	float			m_PrevYpos;
	int				m_nCameraWidth;
	int				m_nCameraHeight;
	bool			m_isAutoMove;
};


#endif